package Test;

import Config.Configure;
import junit.framework.TestCase;

public class TestConfigure extends TestCase {

	protected void setUp() throws Exception {
	    String configfile = "./TestData/TestPMgr/TestPipelineMgr";
		Configure.SetConfigureFile(configfile);
		Configure.GetConfigure();
		super.setUp();
	}

	public void testGetConfigure() {
		assertEquals(Configure.ANALYZER_DIR, "./TestData/TestPMgr/Input");
		assertEquals(Configure.DATABASE_DIR, "./TestData/TestPMgr/DataBase");
		assertEquals(Configure.STAT_FILE, "TestPipelineMgrLog.log");
		assertEquals(Configure.STAT_PATH, "./TestData/TestPMgr/Stat");
		assertEquals(Configure.LOG_FILE, "TestPipelineMgrLog.log");
		assertEquals(Configure.LOG_PATH, "./TestData/TestPMgr/Log");
		assertEquals(Configure.DEST_DIR, "./TestData/TestPMgr/Output");
		assertEquals(Configure.BASE_DIR, "./TestData/TestPMgr/Input");
		assertEquals(Configure.RAWDATA_THRESHOLD, 100);
		assertEquals(Configure.PREPROCESSOR, false);
		assertEquals(Configure.ANALYZER, true);
		assertEquals(Configure.STORE_IN_DB, false);
	}

}
